test:
	make test_Bisection
	make test_Newton
	make test_Secant
	@echo test Bisection method \\\\ 
	./test_Bisection
	@echo test Newton method \\\\ 
	./test_Newton
	@echo test Secant method \\\\ 
	./test_Secant
	@echo test all finished. Use \"make cleantest\" to clean test files.
run:
	@echo Problem B \\\\
	make run_B
	@echo Problem C \\\\
	make run_C
	@echo Problem D \\\\
	make run_D
	@echo Problem E \\\\
	make run_E
	@echo Problem F \\\\
	make run_F
	@echo All finished. Use \"make cleanrun\" to clean files.
run_B:
	g++ -o Assignment_B Assignment_B.cpp Method.h EquationSolver.h
	./Assignment_B
run_C:
	g++ -o Assignment_C Assignment_C.cpp Method.h EquationSolver.h
	./Assignment_C
run_D:
	g++ -o Assignment_D Assignment_D.cpp Method.h EquationSolver.h
	./Assignment_D
run_E:
	g++ -o Assignment_E Assignment_E.cpp Method.h EquationSolver.h
	./Assignment_E
run_F:
	g++ -o Assignment_F Assignment_F.cpp Method.h EquationSolver.h
	./Assignment_F
test_Equation:
	g++ -o test_EquationSolver test_EquationSolver.cpp EquationSolver.h
test_Bisection:
	g++ -o test_Bisection test_Bisection.cpp Method.h EquationSolver.h
test_Newton:
	g++ -o test_Newton test_Newton.cpp Method.h EquationSolver.h
test_Secant:
	g++ -o test_Secant test_Secant.cpp Method.h EquationSolver.h
cleantest:
	rm  -f test_Secant test_Newton test_Bisection test_EquationSolver
cleanr:
	rm *.aux
	rm *.log
	rm *.pdf
cleanrun:
	rm -f Assignment_F Assignment_E Assignment_D Assignment_C Assignment_B
